<div id="email-active-success">

    <div class="title">
        Send Email
    </div>
    <div class="content">

        <form action="__APP__/SetMail/sendmail" method="post">
            <notempty name="Think.get.rid">
                <input type="hidden" name="rid" value="<{$Think.get.rid}>" />
            </notempty>
            <notempty name="Think.get.uid">
                <input type="hidden" name="uid" value="<{$Think.get.uid}>" />
            </notempty>

            <table>

                <tr>
                    <th>Send To：</th><td>
                    <notempty name='send'>
                        <input type="text" class="text" readonly="readonly" value="<{$send}>" />
                    </notempty>
                    <notempty name='userinfo'>
                        <input type="text" class="text" readonly="readonly" value="<{$userinfo.username}>(<{$userinfo.email}>)" />
                    </notempty>
                </td>
                </tr>

                <tr>
                    <th>Title：</th><td><input type="text" class="text" name="title" /></td>
                </tr>

                <tr><th class="top">Content：</th><td><textarea name="content" class="textarea" style="height:663px;" ></textarea></td></tr>

                <tr><th></th><td><input type="submit" class="submit" value="发送邮件" /></td></tr>

            </table>

        </form>

    </div>
</div>

<script type="text/javascript" src="__PUBLIC__/js/kindeditor/kindeditor-min.js"></script>
<script>
    var editor;
    KindEditor.ready(function(K) {
        editor = K.create('textarea[name="content"]', {
            langType : 'en',
            newlineTag : 'br',
            resizeType : 0,
            allowPreviewEmoticons : true,
            allowImageUpload : true,
            items : [
                'source', '|','fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold', 'italic', 'underline',
                'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
                'insertunorderedlist', '|', 'emoticons', 'image', 'link']
        });
    });
</script>